<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.yaodian100.crm.workflow.entity.WorkFlowNode" %>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<script>
var content;
</script>
<c-rt:set var="tp" value="${pu:pageableTag('tpp', 10, 10)}"/>
${pu:criteriaForName('com.yaodian100.crm.cs.entity.Bulletin') }
${pu:criteriaAddOrder(pu:criteriaOrderDesc('createDate')) }
<c-rt:set var="bulletins" value="${pu:criteriaResult(tp)}"/>
<table class="tb-data" width="100%">
<thead>
<tr>
<th><input type="button" value="新增障碍公告" onclick="doAR('<%=application.getContextPath() %>/cs/bulletin/page.do?iamlazy=updateBulletin','dialog');openDialog('新增公告', content, 500, 500)"/></th>
<th>id</th>
<th>障碍名称</th>
<th>已知状态</th>
<th>种类</th>
<th>障碍发生日期</th>
</tr>
</thead>
<tbody>
<c-rt:forEach items="${bulletins}" var="bulletin">
<tr>
<td>
<input type="button" value="删除" onclick="if(confirm('確定刪除？'))doAR('<%=application.getContextPath()%>/cs/bulletin/delete.do?id=${bulletin.id }', 'miList')"/>
<input type="button" value="编辑" onclick="doAR('<%=application.getContextPath() %>/cs/bulletin/page.do?iamlazy=updateBulletin&id=${bulletin.id }','dialog');openDialog('修改公告', content, 500, 500)"/>

</td>
<td>${bulletin.id }</td>
<td>${bulletin.name }</td>
<td>${bulletin.knownStatus }</td>
<td>${bulletin.type }</td>
<td>${bulletin.occurDate }</td>
</tr>
</c-rt:forEach>
</tbody>
</table>
<c-rt:set var="url">
<%=application.getContextPath() %>/cs/bulletin/page.do
</c-rt:set>
<pageable:Pageable url="${url}" formname="bulletinForm" escapeparams="AJAX,refreshZone,iamlazy" parameter="iamlazy=list&AJAX=true&refreshZone=miList&cqtId=${cqtId}" key="tpp"></pageable:Pageable>